<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:ParticleFiltersDemo1">


    <Style TargetType="local:RobbieTemplatedControl">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="local:RobbieTemplatedControl">
                    <Border Background="Red"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            BorderThickness="{TemplateBinding BorderThickness}"
                            Width="25"
                            Height="25"
                            >
                        <Rectangle Width="10"
                                   Height="10"
                                   Fill="Yellow"
                                   />
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="local:ParticleSetTemplatedControl">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="local:ParticleSetTemplatedControl">
                    <Border Background="{TemplateBinding Background}"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            BorderThickness="{TemplateBinding BorderThickness}">
                        <!--<Polygon Points="100,50 50,100 150,100 100,50 100,30"
    Stroke="green" StrokeThickness="3" Fill="BlanchedAlmond"/>-->
                        <Canvas x:Name="plotArea" Width="500" Height="500" Background="Transparent">                            
                        </Canvas>                        
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>
